<?php
class LoginController extends BaseController
{
	public function showView()
	{
		return View::make('cms.login');
	}
	public function loginCheck()
	{
		$userName=Input::get('userName');
		$passWord=Input::get('passWord');

		$login=new LoginService;
		$login->setUserName($userName);
		$login->setPassWord($passWord);

		$errCode=$login->loginCheck();
		return Response::json($errCode);
	}
}
?>